Health request

 

With the following script you can request the health of a soldier:

 

#start
? (getdammage John >= 0.1):goto "next";
~0.1
goto "start";

#next
hint "John is dead";

 

If John get any dammage above 0.1 the script will jump to the label "next"

and a message will show in the game, otherwise the script will restart.

 

 

Here is another version:

 

@ getdammage John >= 0.1
If (getdammage John >= 0.1) Then {hint "John is hurt";goto "next"}

#next
@ getdammage John == 1
If (getdammage John == 1) Then {hint "John is dead"}